package com.digital.herbarium.Enum;

public enum  ResponseStatusEnum {
    SUCCESS ( 200 , " 请求成功 " ),

    FAILED ( 400 , " 请求失败 " ),

    NOT_FOUND ( 404 , " 接口不存在 " ),

    SERVER_ERROR ( 500 , " 服务器内部出错 " ),

    TOKEN_FAILED (401,"TOKEN验证失败");

    ResponseStatusEnum( int code,String message){

        this.code = code;

        this.message = message;

    }

    private int code ;

    private String message ;

    public int getCode() {

        return code ;

    }

    public void setCode( int code) {

        this . code = code;

    }

    public String getMessage() {

        return message ;

    }

    public void setMessage(String message) {

        this . message = message;

    }
}
